using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Caching;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using Oplaco.Core.BusinessLogicLayer;
using Oplaco.Core.DAL;


namespace Oplaco.Web.DTO
{
   

    /// <summary>
    /// CachedFeatureAd : The Advertisment Data Transfer Object.
    /// </summary>
    public class CachedFeaturedAdvertisment : ICacheableDataTransferObject<CachedFeaturedAdvertisment>
    {
        #region Property
        public int PreviewImageId { get; private set; }
        public string Description { get; private set; }
        public string Title { get; set; }
        public int Id { get;set; }
        public int Rank { get; set; }
        public int MemberId { get;set; }
        public string Url { get;set; }
        public DateTime PublishDate { get; set; }
        public ICollection<CachedFeaturedAdvertisment> ChildCollection { get; set; }
        public bool HasChilds { get { return (this.ChildCollection == null) ? false : true; } }
        #endregion

        public CachedFeaturedAdvertisment(int adId, int previewImageId, string title, string description)
		{
			this.Id = adId;
			this.PreviewImageId = previewImageId;
			this.Title = title;
            this.Description = description;
		}

       

        
    }

    
}